import request from '@/utils/request'

// 查询考试题库列表
export function listRepo(query) {
  return request({
    url: '/study/repo/list',
    method: 'get',
    params: query
  })
}

// 查询考试题库详细
export function getRepo(id) {
  return request({
    url: '/study/repo/' + id,
    method: 'get'
  })
}

// 新增考试题库
export function addRepo(data) {
  return request({
    url: '/study/repo',
    method: 'post',
    data: data
  })
}

export function repoDetail(data) {
  return request({
    url: '/study/repo/detaiQu',
    method: 'post',
    data: data
  })
}

// 修改考试题库
export function updateRepo(data) {
  return request({
    url: '/study/repo',
    method: 'put',
    data: data
  })
}

// 删除考试题库
export function delRepo(id) {
  return request({
    url: '/study/repo/' + id,
    method: 'delete'
  })
}
